var mysql = require('mysql');

// 创建数据库连接配置
var connection = mysql.createConnection({
  host: '123.56.111.171',
  user: 'hyxs.ychlkj.cn',
  password: 'hhc@wff001#',
  database: 'hyxs.ychlkj.cn'
});

// 连接到数据库
connection.connect(function(error) {
  if (error) {
    console.error('Error connecting to the database:', error);
    return;
  }
  
  console.log('数据库连接成功！');
});

module.exports = connection; // 导出数据库连接对象
